import { select_node_operate } from './cla_select_node_operate';
// eslint-disable-next-line no-unused-vars
import { select_node_prop } from './cla_select_node_prop';

const select_node_global_operateTag = 'select_node_global_operate';

export class select_node_global_operate extends select_node_operate {
  get [Symbol.toStringTag]() {
    return select_node_global_operateTag;
  }
  /**
   *
   * @param {select_node_prop} prop
   */
  constructor(prop) {
    super(prop);
  }
  // export class select_node_global_operate {
  //   get [Symbol.toStringTag]() {
  //     return select_node_global_operateTag;
  //   }

  //   /**
  //    *
  //    * @param {select_node_prop} prop
  //    */
  //   constructor(prop) {
  //     let that = new select_node_operate(prop);

  //     Object.assign(that);
  //   }

  /**
   * 开启 select_node 元素
   */
  open() {
    this.open_focusDisplay();
  }

  /**
   * 关闭 元素
   */
  close() {
    this.close_focusDisplay();
  }

  /**
   * 开启 单选
   */
  single_select() {
    this.set_single_select();
  }

  /**
   * 开启 多选
   */
  multiple_select() {
    this.set_multiple_select();
  }

  /**
   * 获取 当前 选项 id 数组
   */
  get_cur_selected_id_arr() {
    return this.cur_selected_items_id_arr;
  }
}
